<?php

/** 
 * @author Star.Li
 * @
 * 
 */
class IndexController extends Controller{
	//TODO - Insert your code here
	
	/**
	 * @method 
	 * 
	 */
	function actionIndex(){
		
		$title = "";
		
		$this->setPageTitle($title);
		
		//$this->render('index');
		//不使用layout
		$this->renderPartial('index');
	}
    
    public function actionTop(){
        $menu_list = array(
            "base" =>array('name' => '基础服务',
                         'submod' => array(
                             'earaSetting' => array('name' => '区域设置','url' => 'base/index'),
                             'posSetting' => array('name' => '终端设置','url' => 'base/posSetting'),
                             'customerManager' => array('name' => '商户管理','url' => 'base/customerManager'),
                             'baseData' => array('name' => '基础数据', 'url' => 'base/baseData'),
                         ),
                     ),
            "user" =>array('name' => '成员管理',
                         'submod' => array(
                             'userManager' => array('name' => '用户管理','url' => 'user/userlist'),
                             'roleManager' => array('name' => '角色管理','url' => 'base/index'),
                         ),
                     ),
            "sys" => array('name' => '系统管理',
                         'submod' => array(
                             'sysLog' => array('name' => '系统日志','url' => 'base/index'),
                             'sysSetting' => array('name' => '系统配置','url' => 'base/index'),
                         ),
                     ),
            "inte" =>array('name' => '积分管理',
                         'submod' => array(
                             'inteRule' => array('name' => '积分规则','url' => 'base/index'),
                             'backRule' => array('name' => '返利规则','url' => 'base/index'),
                             'encounterRule' => array('name' => '兑奖规则','url' => 'base/index'),
                         ),
                     ),
            "check"=>array('name' => '系统审核',
                         'submod' => array(
                             'rechargeCheck' => array('name' => '冲值','url' => 'base/index'),
                         ),
                     ),
            "member" => array('name' => '会员管理',
                         'submod' => array(
                             'addCard' => array('name' => '新建会员卡','url' => 'base/index'),
                             'issueCard' => array('name' => '会员卡发卡','url' => 'base/index'),
                             'memberRecharge' => array('name' => '会员卡制卡充值','url' => 'base/index'),
                             'firstCheck' => array('name' => '会员卡一次审核','url' => 'base/index'),
                             'secondCheck' => array('name' => '会员卡二次审核','url' => 'base/index'),
                             'memberManager' => array('name' => '会员卡管理','url' => 'base/index'),
                         ),
                     ),
             "routine"=>array('name' => '会员事务',
                         'submod' => array(
                             'recharge' => array('name' => '充值','url' => 'base/index'),
                             'backCash' => array('name' => '返利','url' => 'base/index'),
                             'encounter' => array('name' => '兑奖','url' => 'base/index'),
                             'markDog' => array('name' => '会员制狗','url' => 'base/index'),
                             'addCard' => array('name' => '会员制卡','url' => 'base/index'),
                             'changeCard' => array('name' => '会员换卡','url' => 'base/index'),
                         ),
                     ),
              "finance"=>array('name' => '财务管理',
                         'submod' => array(
                             'dealDetail' => array('name' => '交易明细','url' => 'base/index'),
                         ),
                     ),
               "userinfo"=>array('name' => '用户信息',
                         'submod' => array(
                             'updatePassword' => array('name' => '修改密码','url' => 'base/index'),
                             'updateUserInfo' => array('name' => '修改会员信息','url' => 'base/index'),
                         ),
                     ),
                "report"=>array('name' => '报表',
                         'submod' => array(
                             'deal' => array('name' => '交易明细表','url' => 'base/index'),
                             'dealMonthReport' => array('name' => '交易统计月报表','url' => 'base/index'),
                             'shopMonthReport' => array('name' => '店铺交易月报表','url' => 'base/index'),
                             'sysStatReport' => array('name' => '系统汇总报表','url' => 'base/index'),
                             'clearReport' => array('name' => '清算报表','url' => 'base/index'),
                             'saleCardStat' => array('name' => '售卡统计','url' => 'base/index'),
                             'rechargeDetail' => array('name' => '充值明细','url' => 'base/index'),
                             'unconsumptionStat' => array('name' => '未消费统计','url' => 'base/index'),
                             'prepAuthorize' => array('name' => '预授权','url' => 'base/index'),
                         ),
                     ),
        );
        
        $this->renderPartial('top', array(
            'list' => $menu_list,
        ));
    }
	
}

?>